[UBSAN] deltas: Don't call memset(NULL, NULL, 0) with no xattrs
authorColin Walters <walters@verbum.org>
Thu, 17 Nov 2016 18:48:58 +0000 (13:48 -0500)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 17 Nov 2016 19:20:20 +0000 (19:20 +0000)
commitb5c4e6d99ac0dc5e9aa20cabdb7208b11e7b6966
tree80819db8fd1499ebfe3939bb91a5d3c73cc71507
parent0ee9e221beecd2261f75da46afa02d54b1230886
[UBSAN] deltas: Don't call memset(NULL, NULL, 0) with no xattrs

This is actually fine in practice, but it triggers this
`-fsanitize=undefined` warning I saw in the test suite log:

```
src/libostree/ostree-repo-static-delta-compilation.c:160:10: runtime error: null pointer passed as argument 1, which is declared to never be null
```

Closes: #584
Approved by: jlebon
src/libostree/ostree-repo-static-delta-compilation.c